
package com.aizuda.lucky;

import feign.Headers;
import feign.Param;
import feign.RequestLine;

import java.util.List;
import java.util.Map;

public interface GitHubClient {

    String accessToken = "访问票据";

    @Headers({"Content-Type: application/json", "Authorization: token {accessToken}"})
    @RequestLine("GET /repos/aizuda/flowlong/stargazers?page={page}&per_page=100")
    List<Map<String, Object>> getStars(@Param("accessToken") String accessToken, @Param("page") Integer page);

}
